#import <Foundation/Foundation.h>


@interface PIContext : NSObject
{
    NSInteger key;
    NSString* title;
    BOOL selected;
    
    BOOL locationAware;
    
    NSInteger count;
}

@property (readonly) NSInteger key;
@property (readonly) NSString* title;
@property (assign, getter=isSelected) BOOL selected;
@property (assign, getter=isLocationAware) BOOL locationAware;
@property (assign) NSInteger count;


+ (PIContext*)contextForKey:(NSInteger)newKey title:(NSString*)title;
+ (PIContext*)contextForKey:(NSInteger)newKey title:(NSString*)title selected:(BOOL)newSelected;

@end


@interface NSArray (PIContext)

- (id)piContextForKey:(NSInteger)key;

@end
